package licode.unisop.single.user.application.gateway;

import java.io.Serializable;
import java.util.List;

import licode.unisop.realm.client.info.SiPlatformAssignIn;
import licode.unisop.realm.client.info.SiRealmGrantPlatformIn;
import licode.unisop.single.user.application.entity.RealmPlatformGrantEntity;

/**
 * uni-user-single
 *
 * @author licode
 * @date 2024-06-29 10:19:05
 */
public interface RealmPlatformGrantDao {
    void assignPlatform(SiPlatformAssignIn req);
    void removePlatform(SiPlatformAssignIn req);

    int realmGrantToPlatform(SiRealmGrantPlatformIn req);

    List<RealmPlatformGrantEntity> queryByRealmId(String realmId, Integer grantType);
    List<RealmPlatformGrantEntity> queryByPlatformId(String platformId, Integer grantType);
}
